// 模板
const state = {
  pageindex: 0,
};

const mutations = {
  setindex(state, index) {
    state.pageindex = index;
    localStorage.setItem('page', index);
  },
};

const actions = {};

const getters = {};

export default {
  namespaced: true,
  state,
  mutations,
  actions,
  getters,
};
